package com.example.springboot_test.easyexcel.model.builder.common;

import com.example.springboot_test.easyexcel.model.common.BorderModel;
import lombok.Getter;
import org.apache.poi.ss.usermodel.BorderStyle;

/**
 * 边框信息Builder
 *
 * @author xudongmaster
 */
@Getter
public class BorderModelBuilder {
    /**
     * 边框线条类型
     */
    private BorderStyle borderStyle;
    /**
     * 边框线条颜色
     */
    private Object borderColor;

    public BorderModelBuilder() {
    }

    public BorderModelBuilder borderStyle(BorderStyle borderStyle) {
        this.borderStyle = borderStyle;
        return this;
    }

    public BorderModelBuilder borderColor(Object borderColor) {
        this.borderColor = borderColor;
        return this;
    }


    /**
     * 具体构建方法
     *
     * @return
     */
    public BorderModel build(){
        return new BorderModel(this);
    }
}
